import request from '@/service/request'
// 模拟请求 mock-js
/* 模拟 菜单与权限 page接口
* @param {Object} params 搜索参数
*  */
export const treeMenuPermitMockApi = () => {
    return request.post('/mock/sys/menuPermit/tree')
}

/* 模拟 菜单与权限 删除
* @param {number} id
*  */
export const delMenuPermitMockApi = (id) => {
    return request.post(`/mock/sys/menuPermit/del/${id}`)
}

/* 模拟 菜单与权限 保存
*  @param {number} id
*  @param {string} permissionName
*  @param {string} permissionKey
*  @param {string} remarks
* */
export const saveMenuPermitMockApi = (params) => {
    return request.post('/mock/sys/menuPermit/save', params)
}

/* 菜单与权限 根据token获取用户的菜单tree
*/
export const getUserMenuTreeMockApi = () => {
    return request.post('/mock/currentUserMenu')
}
